/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package controlador;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;

/**
 *
 * @author andrescsr
 */
public class ConnectionFactory {
    private EntityManagerFactory factory;
    
    public ConnectionFactory(){
        factory = Persistence.createEntityManagerFactory("DS2_JPAPU");
    }

    public EntityManagerFactory getFactory() {
        return factory;
    }
}